/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

var require = {
    baseUrl: g.ctx + 'static/scripts',
    paths  : {
        'jquery'        : 'jquery-1.10.2.min',
        'jquery-migrate': 'jquery-migrate-1.2.1.min',
        'jquery.timer'  : 'jquery.timer',
        'jquery-ui'     : 'plugins/jquery-ui/jquery-ui-1.10.3.custom.min',
        'bootstrap'     : 'plugins/bootstrap/js/bootstrap.min',

        'bootstrap2-typeahead'     : 'plugins/bootstrap/js/bootstrap2-typeahead.min',
        'bootbox'                  : 'plugins/bootbox/bootbox.min',
        'bootstrap-confirmation'   : 'plugins/bootstrap-confirmation/bootstrap-confirmation',
        'bootstrap-colorpicker'    : 'plugins/bootstrap-colorpicker/js/bootstrap-colorpicker',
        'bootstrap-datepaginator'  : 'plugins/bootstrap-datepaginator/bootstrap-datepaginator.min',
        'bootstrap-datepicker'     : 'plugins/bootstrap-datepicker/js/bootstrap-datepicker',
        'bootstrap-datepicker-zh'  : 'plugins/bootstrap-datepicker/js/bootstrap-datepicker.zh-CN',
        'bootstrap-daterangepicker': 'plugins/bootstrap-daterangepicker/daterangepicker',
        'bootstrap-datetimepicker' : 'plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker',
        'bootstrap-editable'       : 'plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.min',
        'bootstrap-fileinput'      : 'plugins/bootstrap-fileinput/bootstrap-fileinput',
        'bootstrap-hover-dropdown' : 'plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min',
        'bootstrap-maxlength'      : 'plugins/bootstrap-maxlength/bootstrap-maxlength.min',
        'bootstrap-modal'          : 'plugins/bootstrap-modal/js/bootstrap-modal',
        'bootstrap-modalmanager'   : 'plugins/bootstrap-modal/js/bootstrap-modalmanager',
        'bootstrap-select'         : 'plugins/bootstrap-select/bootstrap-select.min',
        'bootstrap-sessiontimeout' : 'plugins/bootstrap-sessiontimeout/jquery.sessionTimeout.min',
        'bootstrap-switch'         : 'plugins/bootstrap-switch/js/bootstrap-switch.min',
        'bootstrap-timepicker'     : 'plugins/bootstrap-timepicker/js/bootstrap-timepicker.min',
        'bootstrap-toastr'         : 'plugins/bootstrap-toastr/toastr.min',
        'bootstrap-touchspin'      : 'plugins/bootstrap-touchspin/bootstrap.touchspin',
        'bootstrap-wizard'         : 'plugins/bootstrap-wizard/jquery.bootstrap.wizard.min',
        'bootstrap-wysihtml5'      : 'plugins/bootstrap-wysihtml5/bootstrap-wysihtml5',

        'wysihtml5'      : 'plugins/bootstrap-wysihtml5/wysihtml5',
        'kindeditor'     : 'plugins/kindeditor/kindeditor-all-min',
        'kindeditor-lang': 'plugins/kindeditor/lang/zh_CN',

        'clockface'             : 'plugins/clockface/js/clockface',
        'countdown'             : 'plugins/countdown/jquery.countdown.min',
        'dropzone'              : 'plugins/dropzone/dropzone',
        'fancybox'              : 'plugins/fancybox/jquery.fancybox',
        'spinner'               : 'plugins/fuelux/js/spinner.min',
        'fullcalendar'          : 'plugins/fullcalendar/fullcalendar.min',
        'gritter'               : 'plugins/gritter/js/jquery.gritter',
        'jcrop'                 : 'plugins/jcrop/js/jquery.Jcropa.min',
        'jstree'                : 'plugins/jstree/jstree.min',
        'nouislider'            : 'plugins/nouislider/jquery.nouislider',
        'pace'                  : 'plugins/pace/pace.min',
        'select2'               : 'plugins/select2/select2.min',
        'typeahead'             : 'plugins/typeahead/typeahead.min',
        'uniform'               : 'plugins/uniform/jquery.uniform.min',
        'jquery.color'          : 'plugins/jcrop/js/jquery.color',
        'jquery-nestable'       : 'plugins/jquery-nestable/jquery.nestable',
        'jquery.form'           : 'plugins/jquery-form/jquery.form',
        'backstretch'           : 'plugins/backstretch/jquery.backstretch.min',
        'uploadify'             : 'plugins/uploadify/jquery.uploadify',
        'jquery-mixitup'        : 'plugins/jquery-mixitup/jquery.mixitup.min',
        'jquery-slimscroll'     : 'plugins/jquery-slimscroll/jquery.slimscroll.min',
        'jquery-serializejson'  : 'plugins/jquery.serializejson/jquery.serializejson',

        // chart
        'jquery-easy-pie-chart' : 'plugins/jquery-easy-pie-chart/jquery.easy-pie-chart',
        'jquery-flot'           : 'plugins/flot/jquery.flot.min',
        'jquery-flot-resize'    : 'plugins/flot/jquery.flot.resize.min',
        'jquery-flot-pie'       : 'plugins/flot/jquery.flot.pie.min',
        'jquery-flot-categories': 'plugins/flot/jquery.flot.categories.min',
        'jquery-flot-crosshair' : 'plugins/flot/jquery.flot.crosshair.min',
        'jquery-flot-stack'     : 'plugins/flot/jquery.flot.stack.min',

        'datatables'   : 'plugins/data-tables/jquery.dataTables',
        'dt_datatables': 'plugins/data-tables/DT_bootstrap',


        'jquery-validation'           : 'plugins/jquery-validation/jquery.validate.min',
        'jquery-validation-additional': 'plugins/jquery-validation/additional-methods.min',

        'jquery.blockui'                 : 'plugins/jquery.blockui.min',
        'jquery.cokie'                   : 'plugins/jquery.cokie.min',
        'jquery.mockjax'                 : 'plugins/jquery.mockjax',
        'jquery.pulsate'                 : 'plugins/jquery.pulsate.min',
        'jquery.sparkline'               : 'plugins/jquery.sparkline.min',
        'moment'                         : 'plugins/moment.min',
        'holder'                         : 'plugins/holder',
        'jquery.input-ip-address-control': 'plugins/jquery.input-ip-address-control-1.0.min',

        //lh add 14/05/24
        "jquery.inputmask"               : 'plugins/jquery-inputmask/jquery.inputmask.bundle.min',

        'coreapp' : 'core/app',
        'adminapp': 'admin/app'

    },
    shim   : {
        'jquery-ui'     : ['jquery'],
        'jquery-migrate': ['jquery'],
        'bootstrap'     : ['jquery'],
        'jquery.timer'  : ['jquery'],

        'bootstrap2-typeahead'     : ['jquery'],
        'bootbox'                  : ['jquery', 'bootstrap'],
        'bootstrap-confirmation'   : ['jquery', 'bootstrap'],
        'bootstrap-colorpicker'    : ['jquery', 'bootstrap'],
        'bootstrap-datepaginator'  : ['jquery', 'bootstrap'],
        'bootstrap-datepicker'     : ['jquery', 'bootstrap'],
        'bootstrap-datepicker-zh'  : ['jquery', 'bootstrap', 'bootstrap-datepicker'],
        'bootstrap-daterangepicker': ['jquery', 'bootstrap'],
        'bootstrap-datetimepicker' : ['jquery', 'bootstrap'],
        'bootstrap-editable'       : ['jquery', 'bootstrap'],
        'bootstrap-fileinput'      : ['jquery', 'bootstrap'],
        'bootstrap-hover-dropdown' : ['jquery', 'bootstrap'],
        'bootstrap-maxlength'      : ['jquery', 'bootstrap'],
        'bootstrap-modal'          : ['jquery', 'bootstrap'],
        'bootstrap-modalmanager'   : ['jquery', 'bootstrap', 'bootstrap-modal'],
        'bootstrap-select'         : ['jquery', 'bootstrap'],
        'bootstrap-sessiontimeout' : ['jquery', 'bootstrap'],
        'bootstrap-switch'         : ['jquery', 'bootstrap'],
        'bootstrap-timepicker'     : ['jquery', 'bootstrap'],
        'bootstrap-toastr'         : ['jquery', 'bootstrap'],
        'bootstrap-touchspin'      : ['jquery', 'bootstrap'],
        'bootstrap-wizard'         : ['jquery', 'bootstrap'],
        'bootstrap-wysihtml5'      : ['jquery', 'bootstrap', 'wysihtml5'],

        'wysihtml5'      : ['jquery'],
        'kindeditor'     : ['jquery'],
        'kindeditor-lang': ['kindeditor'],
        'ueditor'        : ['ueditor-config'],
        'ueditor-lang'   : ['ueditor'],

        'clockface'           : ['jquery'],
        'countdown'           : ['jquery'],
        'dropzone'            : ['jquery'],
        'spinner'             : ['jquery'],
        'fuelux'              : ['jquery'],
        'fullcalendar'        : ['jquery'],
        'gritter'             : ['jquery'],
        'jcrop'               : ['jquery'],
        'jquery.color'        : ['jquery'],
        'jquery-nestable'     : ['jquery'],
        'jstree'              : ['jquery'],
        'nouislider'          : ['jquery'],
        'pace'                : ['jquery'],
        'select2'             : ['jquery'],
        'typeahead'           : ['jquery'],
        'uniform'             : ['jquery'],
        'backstretch'         : ['jquery'],
        'uploadify'           : ['jquery'],
        'jquery-mixitup'      : ['jquery'],
        'jquery-slimscroll'   : ['jquery'],
        'jquery-serializejson': ['jquery'],

        'jquery-easy-pie-chart' : ['jquery'],
        'jquery-flot'           : ['jquery'],
        'jquery-flot-resize'    : ['jquery', 'jquery-flot'],
        'jquery-flot-pie'       : ['jquery', 'jquery-flot'],
        'jquery-flot-categories': ['jquery', 'jquery-flot'],
        'jquery-flot-crosshair' : ['jquery', 'jquery-flot'],
        'jquery-flot-stack'     : ['jquery', 'jquery-flot'],

        'datatables'   : ['jquery'],
        'dt_datatables': ['jquery', 'bootstrap', 'datatables'],


        'jquery-validation'           : ['jquery'],
        'jquery-validation-additional': ['jquery', 'jquery-validation'],

        'jquery.blockui'                 : ['jquery'],
        'jquery.cokie'                   : ['jquery'],
        'jquery.mockjax'                 : ['jquery'],
        'jquery.pulsate'                 : ['jquery'],
        'jquery.sparkline'               : ['jquery'],
        'moment'                         : ['jquery'],
        'jquery.input-ip-address-control': ['jquery'],
        'jquery.inputmask'               : ['jquery'],
        'coreapp'                        : ['jquery'],
        'adminapp'                       : ['coreapp']
    }
};